import request from '@/utils/request'
import store from '@/store'
//  登录api
export function sysLogin(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
//  获取用户信息
export const sysProfile = (data) => {
  return request({
    url: '/sys/profile',
    method: 'post',
    data
  })
}
// 获取员工信息
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
